package com.example.myapplication;

public class Song {

    private String title;  // 歌曲名称
    private int resId;  // 歌曲资源ID
    private int iconResId;  // 歌曲封面图标资源ID

    // 构造函数
    public Song(String title, int resId, int iconResId) {
        this.title = title;
        this.resId = resId;
        this.iconResId = iconResId;
    }

    // 获取歌曲标题
    public String getTitle() {
        return title;
    }

    // 获取歌曲资源ID
    public int getResId() {
        return resId;
    }

    // 获取封面图标资源ID
    public int getIconResId() {
        return iconResId;
    }
}
